<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Service
 *
 * @ORM\Table(name="Service")
 * @ORM\Entity
 */
class Service
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var decimal $price
     *
     * @ORM\Column(name="price", type="decimal", nullable=false)
     */
    private $price;

    /**
     * @var string $quantity
     *
     * @ORM\Column(name="quantity", type="string", length=50, nullable=false)
     */
    private $quantity;

    /**
     * @var string $value
     *
     * @ORM\Column(name="value", type="string", length=255, nullable=false)
     */
    private $value;

    /**
     * @var Servicetype
     *
     * @ORM\ManyToOne(targetEntity="Servicetype")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="servicetype_id", referencedColumnName="id")
     * })
     */
    private $servicetype;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set price
     *
     * @param decimal $price
     */
    public function setPrice($price)
    {
        $this->price = $price;
    }

    /**
     * Get price
     *
     * @return decimal 
     */
    public function getPrice()
    {
        return $this->price;
    }

    /**
     * Set quantity
     *
     * @param string $quantity
     */
    public function setQuantity($quantity)
    {
        $this->quantity = $quantity;
    }

    /**
     * Get quantity
     *
     * @return string 
     */
    public function getQuantity()
    {
        return $this->quantity;
    }

    /**
     * Set value
     *
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Get value
     *
     * @return string 
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Set servicetype
     *
     * @param Luka\StoreBundle\Entity\Servicetype $servicetype
     */
    public function setServicetype(\Luka\StoreBundle\Entity\Servicetype $servicetype)
    {
        $this->servicetype = $servicetype;
    }

    /**
     * Get servicetype
     *
     * @return Luka\StoreBundle\Entity\Servicetype 
     */
    public function getServicetype()
    {
        return $this->servicetype;
    }
}